package com.desire.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author LittleDesire
 * @description
 * @date 2022-04-13 周三 11:21
 * @since 17
 */
@Mapper
public interface BookMapper {
    @Select("select * from oadb.book order by id desc")
    List<Map<String, Object>> queryAll();

    /**
     * 动态语句查询总记录数
     */
    int count();
    int count(String param);


    /**
     * 分页查询 动态语句
     */
    List<Map<String, Object>> queryPageBy();
    List<Map<String, Object>> queryPageBy(Map<String, Object> map);

    List<Map<String, Object>> showByPage();
}
